<?php

	$this->Html->script(array('jquery.maskedinput-1.2.2.min','maskinput'), false);

	echo '<fieldset><legend>Dados</legend>';
	echo $this->Form->create('Endereco');
	echo $this->Form->input('id');
	echo $this->Form->input('cep', array('class' => 'maskcep cep', 'label' => __('Cep')));
	echo $this->Form->input('logradouro', array('class' => 'tamanho50', 'label' => __('Logradouro')));
	echo $this->Form->input('bairro', array('class' => 'tamanho50', 'label' => __('Bairro')));
	echo $this->Form->input('cidade_id',array('type' => 'select', 'options' => $cidades, 'empty' => 'Selecione...', 'class' => 'tamanho50', 'label' => __('Cidade')));
	echo '<div class="botoes_form">';
	echo $this->Form->button('Salvar', array('type' => 'submit'));
	echo $this->Form->button('Voltar', array('type'=>'button', 'onClick' => "javascript:location='{$this->request->base}/{$this->request->controller}/index'"));
	echo '</div>'; 
	echo $this->Form->end();
	echo '</fieldset>';